﻿using FriendStar.Code;
using FriendStar.Domain.Entity.VBaseData;
using FriendStar.Domain.IRepository.VBaseData;
using FriendStar.Repository.VBaseData;
using System.Collections.Generic;
using System.Linq;
using SqlSugarRepository;

namespace FriendStar.Application.VBaseData
{
    public class V_CPK_44_MX_StoCPKListAcco_Mid_HZApp
    {
        private IV_CPK_44_MX_StoCPKListAcco_Mid_HZRepository service = new V_CPK_44_MX_StoCPKListAcco_Mid_HZRepository();

        public List<V_CPK_44_MX_StoCPKListAcco_Mid_HZEntity> GetList(string keyword)
        {
            var expression = ExtLinq.True<V_CPK_44_MX_StoCPKListAcco_Mid_HZEntity>();
            if (!string.IsNullOrEmpty(keyword))
            {
                expression = expression.And(t => t.FAccountDate.Contains(keyword));
            }
            return service.IQueryable(expression).ToList();
        }
    }
}
